<?php
$kevinArray = array(
    "name" => array("first name" => "Kevin", "last name" => "Zhang"),
    "age" => "41"
);

printf("array dump: %s\n", var_export($kevinArray, true));

$jsonStr = json_encode($kevinArray);
 
printf("json str dump: %s\n", $jsonStr);
?>
